﻿<UserControl x:Class="Microsoft.Research.ScientificWorkflow.UIDesigner.ExecutionInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" HorizontalAlignment="Left">
    <UserControl.Resources>
        <Style x:Key="ButtonStyle2" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid>
                            <Rectangle Fill="DarkGray" Stroke="{x:Null}" StrokeThickness="0" RadiusX="1.897" RadiusY="1.897" x:Name="rectangle"/>
                            <Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0" Margin="2.832,3.706,2.507,3.703" Data="M931.41167,190.23724 L936.42375,195.68479 937.94899,194.05051 932.82825,188.16687 937.73131,183.15536 935.77002,181.30316 930.75807,186.53287 925.20161,181.52106 924.22047,183.80906 929.34144,188.71191 924.22035,194.15959 926.29058,195.68486 z"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsCancel" Value="False"/>
                            <Trigger Property="IsFocused" Value="True"/>
                            <Trigger Property="IsDefaulted" Value="True"/>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Fill" TargetName="rectangle" Value="Black"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True"/>
                            <Trigger Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Border BorderBrush="#FFAEBBC2" BorderThickness="1,1,2,2">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF9FDFF" Offset="0"/>
                    <GradientStop Color="#FFEAF4FB" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="27.974"/>
                    <RowDefinition Height="25.026"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="35"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Border HorizontalAlignment="Stretch" Margin="-1,-1,-1,0" VerticalAlignment="Stretch" CornerRadius="0,0,0,0" Grid.ColumnSpan="2" Grid.Row="0">
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF868686" Offset="0"/>
                            <GradientStop Color="#FF525353" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <DockPanel LastChildFill="False">
                        <TextBlock Name="txtBlkMainHeader" HorizontalAlignment="Left" Text="Trident" Margin="10,5,0,0" Foreground="#FFFFFFFF" DockPanel.Dock="Left" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
                    </DockPanel>
                </Border>
                <TextBlock Name="txtBlkInfoText1" Text="The execution of this workflow cannot be started." Margin="10,5,10,0" VerticalAlignment="Top" TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Grid.ColumnSpan="2" Grid.Row="1"/>
                <TextBlock Name="txtBlkInfoText2" Text="Please check whether the windows service is started and try again." Margin="10,5,10,0" VerticalAlignment="Top" TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Grid.ColumnSpan="2" Grid.Row="2"/>				
                <DockPanel HorizontalAlignment="Right" Grid.Row="3" LastChildFill="False" VerticalAlignment="Top" Margin="0,0,10,0">
				    <Button Name="btnOk" Click="OnTryAgainClick" VerticalAlignment="Center" Content="Try Again" IsDefault="True" DockPanel.Dock="Left" MinWidth="50" HorizontalContentAlignment="Center" MinHeight="26" Margin="10,0,0,0"/>
                    <Button Name="btnCancel" Click="OnAbortClick" VerticalAlignment="Center" Content="Abort" IsCancel="True" DockPanel.Dock="Left" MinWidth="50" MinHeight="26" Margin="10,0,0,0"/>
                </DockPanel>
			</Grid>
        </Border>
    </Grid>
</UserControl>
